package com.shm.client.database;

import android.content.Context;

import com.lswsjw.android.lib.sqlite.DBManager;
import com.lswsjw.android.lib.sqlite.DBOpenFromFile;

public class DBConnection {
	
	private static DBManager dbManager = null;
	
	private DBConnection() {
		
	}
	
	public static DBManager getSingleton(Context context) {
	
		if(dbManager == null) {
			dbManager = DBManager.getInstance(context, "user.sqlite", 2, "com.shm.client");
			DBOpenFromFile doff = new DBOpenFromFile();
			dbManager.setDbOpenHelper(doff);
		}
		
		return dbManager;
	}

}
